/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.site.user.pojo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author zhanjun
 */
@Entity
@Table(name = "tb_operation")
@NamedQueries({
    @NamedQuery(name = "TbOperation.findAll", query = "SELECT t FROM TbOperation t"),
    @NamedQuery(name = "TbOperation.findByIdOperation", query = "SELECT t FROM TbOperation t WHERE t.idOperation = :idOperation"),
    @NamedQuery(name = "TbOperation.findByOpetName", query = "SELECT t FROM TbOperation t WHERE t.opetName = :opetName"),
    @NamedQuery(name = "TbOperation.findByOpetKey", query = "SELECT t FROM TbOperation t WHERE t.opetKey = :opetKey"),
    @NamedQuery(name = "TbOperation.findByOpetDesc", query = "SELECT t FROM TbOperation t WHERE t.opetDesc = :opetDesc")})
public class TbOperation implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "ID_OPERATION")
    private String idOperation;
    @Column(name = "OPET_NAME")
    private String opetName;
    @Column(name = "OPET_KEY")
    private String opetKey;
    @Column(name = "OPET_DESC")
    private String opetDesc;

    public TbOperation() {
    }

    public TbOperation(String idOperation) {
        this.idOperation = idOperation;
    }

    public String getIdOperation() {
        return idOperation;
    }

    public void setIdOperation(String idOperation) {
        this.idOperation = idOperation;
    }

    public String getOpetName() {
        return opetName;
    }

    public void setOpetName(String opetName) {
        this.opetName = opetName;
    }

    public String getOpetKey() {
        return opetKey;
    }

    public void setOpetKey(String opetKey) {
        this.opetKey = opetKey;
    }

    public String getOpetDesc() {
        return opetDesc;
    }

    public void setOpetDesc(String opetDesc) {
        this.opetDesc = opetDesc;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idOperation != null ? idOperation.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbOperation)) {
            return false;
        }
        TbOperation other = (TbOperation) object;
        if ((this.idOperation == null && other.idOperation != null) || (this.idOperation != null && !this.idOperation.equals(other.idOperation))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.site.user.pojo.TbOperation[idOperation=" + idOperation + "]";
    }

}
